package com.chhuang.uresource.bean;


import com.chhuang.core.bean.QueryBean;
import com.chhuang.uresource.po.ChUser;

/**
* ChUser QueryBean
* @author ChHuang
* @date Tue Jan 30 11:33:03 CST 2018
*/
public class ChUserQueryBean extends QueryBean<ChUser>{
	private static final long serialVersionUID = 7495022821453446296L;
	private String userId;
	public String getUserId(){
		return userId;
	}
	public void setUserId(String userId){
		this.userId=userId;
	}
	private String username;
	public String getUsername(){
		return username;
	}
	public void setUsername(String username){
		this.username=username;
	}
	private String password;
	public String getPassword(){
		return password;
	}
	public void setPassword(String password){
		this.password=password;
	}
	private String createTime;
	public String getCreateTime(){
		return createTime;
	}
	public void setCreateTime(String createTime){
		this.createTime=createTime;
	}
	@Override
	public String fieldTransforColumn(String field) {
		if("userId".equals(field)){
			return "USER_ID";
		}else if("username".equals(field)){
			return "USERNAME";
		}else if("password".equals(field)){
			return "PASSWORD";
		}else if("createTime".equals(field)){
			return "CREATE_TIME";
		}else{
			return field;
		}
	}
	@Override
	public String columnTransforField(String column) {
		if("USER_ID".equals(column)){
			return "userId";
		}else if("USERNAME".equals(column)){
			return "username";
		}else if("PASSWORD".equals(column)){
			return "password";
		}else if("CREATE_TIME".equals(column)){
			return "createTime";
		}else{
			return column;
		}
	}
}